package com.duobaoyu.dby.supply.common.biz.vo.account;

import com.duobaoyu.dby.supply.common.biz.serializer.BigDecimalSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author yanhan
 * @Date 2022/6/14 11:54
 * @Version 1.0
 * @Description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AvailableBalanceVO implements Serializable {

	private static final long serialVersionUID = 5105348862792158358L;

	/**
	 * 三方渠道
	 */
	private String channelCode;

	/**
	 * 三方渠道名称
	 */
	private String channelName;

	/**
	 * 余额
	 */
	@JsonSerialize(using = BigDecimalSerializer.class)
	private volatile BigDecimal availableBalance = BigDecimal.ZERO;

	/**
	 * 在途金额
	 */
	@JsonSerialize(using = BigDecimalSerializer.class)
	private volatile BigDecimal lockAmount = BigDecimal.ZERO;

	/**
	 * 预下单金额
	 */
	@JsonSerialize(using = BigDecimalSerializer.class)
	private volatile BigDecimal preOrderAmount = BigDecimal.ZERO;

	/**
	 * 商品销单
	 */
	private volatile Long sellCount = 0L;

}
